<%#
# To change this template, choose Tools | Templates
# and open the template in the editor.
%>

<%= error_messages_for 'book' %>
<p><label for="book_title"><%=t :title %></label><br/>
<%= text_field 'book', 'title' %></p>
<p><label for="book_publisher"><%=t :publisher %></label><br/>
<%= collection_select :book, :publisher_id, @publishers, :id, :name %></p>
<p><label for="book[author_ids][]"><%=t :authors %></label><br/>
<%= select_tag 'book[author_ids][]',
 options_from_collection_for_select(@authors, :id, :name,
 @book.authors.collect{|author| author.id}),
 { :multiple => true, :size => 5 } %> </p>
<p><label for="book_published_at"><%=t :published_at %></label><br/>
<%= datetime_select 'book', 'published_at' %></p>
<p><label for="book_isbn">Isbn</label><br/>
<%= text_field 'book', 'isbn' %></p>
<p><label for="book_blurb"><%=t :blurb %></label><br/>
<%= text_area 'book', 'blurb' %></p>
<p><label for="book_price"><%=t :price %></label><br/>
<%= text_field 'book', 'price' %></p>
<p><label for="book_price"><%=t :page_count %></label><br/>
<%= text_field 'book', 'page_count' %></p>
<p><label for="book_cover_image"><%=t :cover_image %></label><br/>
<%= file_column_field 'book', 'cover_image' %></p>